/* donar.css - Blood Bank Donor Appreciation Page */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- HEADER & NAVIGATION ----- */
header {
    background-color: #b30000; /* Deep red */
    color: white;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header-container img {
    filter: brightness(0) invert(1); /* Make logo white */
    width: 30px;
    height: 30px;
}

.header-container h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: auto; /* Pushes nav links to the right */
    letter-spacing: 1px;
}

.header-container a:not(.user-avatar) {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.header-container a:not(.user-avatar):hover {
    background-color: #8b0000; /* Darker red */
}

/* User menu / avatar */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.user-avatar {
    font-size: 2rem;
    color: white;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-name a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1;
}

.dropdown-content a {
    color: #333 !important;
    padding: 0.75rem 1rem !important;
    display: block;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:hover {
    background-color: #f8f8f8 !important;
    color: #b30000 !important;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* ----- MAIN CONTENT ----- */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hero-image {
    flex: 1 1 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-message {
    flex: 1 1 300px;
    font-size: 2rem;
    font-weight: bold;
    color: #b30000;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.7);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    line-height: 1.4;
}

.hero-message p {
    max-width: 400px;
    margin: 0 auto;
}

/* Appreciation Section */
.appreciation-section {
    margin-bottom: 4rem;
}

.gift-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    background-color: #fafafa;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gift-image {
    flex: 1 1 400px;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gift-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.audio-message {
    flex: 1 1 350px;
    text-align: center;
}

.audio-player {
    margin-bottom: 1.5rem;
}

.audio-player audio {
    width: 100%;
    border-radius: 30px;
    outline: none;
}

.appreciation-text {
    font-size: 1.5rem;
    color: #b30000;
    background: #ffe6e6;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.appreciation-text p {
    margin: 0;
}

/* Donor Impact Section */
.donor-impact-section {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border-radius: 20px;
    padding: 2rem;
}

.impact-content h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #b30000;
    margin-bottom: 2rem;
    position: relative;
}

.impact-content h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #b30000;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.impact-points {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.impact-item {
    flex: 1 1 250px;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid #b30000;
}

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(179, 0, 0, 0.15);
}

.impact-item h3 {
    font-size: 1.5rem;
    color: #b30000;
    margin-bottom: 1rem;
}

.impact-item p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

/* ----- FOOTER ----- */
footer {
    background-color: #222;
    color: #ddd;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-section {
    flex: 1 1 250px;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #b30000;
}

.address-info p,
.contact-details p,
.location-email p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-section a {
    color: #ddd;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff6666;
    text-decoration: underline;
}

.contact-details p b,
.location-email p b,
.address-info p b {
    color: #fff;
    font-weight: 600;
}

/* Footer bottom */
.footer-bottom {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    text-align: center;
}

.donor-appreciation p {
    font-size: 1.1rem;
    color: #ffb3b3;
    font-weight: 500;
}

.copyright p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #999;
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 900px) {
    .header-container {
        gap: 1rem;
    }
    
    .header-container h1 {
        font-size: 1.3rem;
        margin-right: 0;
        width: 100%;
        order: 1;
        text-align: center;
    }
    
    .header-container a:not(.user-avatar) {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .user-menu {
        margin-left: auto;
    }
    
    .hero-content, .gift-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-message {
        font-size: 1.6rem;
    }
    
    .impact-points {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    header {
        padding: 0.5rem 1rem;
    }
    
    .header-container {
        justify-content: center;
    }
    
    .header-container a:not(.user-avatar) {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
    }
    
    .hero-message {
        font-size: 1.3rem;
        padding: 1rem;
    }
    
    .appreciation-text {
        font-size: 1.2rem;
    }
    
    .impact-content h2 {
        font-size: 1.8rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Additional utility for Font Awesome icon (if not loaded, fallback) */
.fas.fa-user-circle {
    font-size: 2rem;
}

/* Ensure audio player fits small screens */
audio {
    max-width: 100%;
}